home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5805 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.tamu.edu!tam2000!kal4851
  2. From: kal4851@tam2000.tamu.edu (Kevin Anthony Lamonte)
  3. Newsgroups: comp.lang.c
  4. Subject: controlling stdin/out w/ child process
  5. Date: 21 Feb 1996 01:28:10 GMT
  6. Organization: Texas A&M University, College Station, TX
  7. Message-ID: <4gdsfa$1ig@news.tamu.edu>
  8. NNTP-Posting-Host: tam2000.tamu.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. An application I'm writing needs to spawn child processes on a routine 
  12. basis.  Since the input and output for these child processes are small 
  13. (typically under 2k), I'd like to redirect the child process's 
  14. stdin/stdout to my already-opened streams.
  15.  
  16. I _could_ write the streams to files, and just issue a system() call, but 
  17. I'd like a method that would be a little more portable (I need this to 
  18. ultimately run on Solaris, SunOS, AIX, and possibly VMS (yuk) ) and touch 
  19. the disk as little as possible.  Is there any way, even if a trifle 
  20. undocumented, to do this?
  21.  
  22. --
  23. -----------------------------------------------------------------
  24. Kevin Lamonte            |   On what conclusions do you justify
  25. kal4851@tam2000.tamu.edu |   those facts?
  26.